package com.lcredu.lcrliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcredu.common.util.PageUtils;
import com.lcredu.lcrliving.commodity.entity.BrandEntity;
import com.lcredu.lcrliving.commodity.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联表
 *
 * @author lcr
 * @email lcr@gmail.com
 * @date 2023-10-09 10:07:19
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //增加方法保存commodity_category_brand_relation表的所有字段,包括brand_name,category_name
    void saveAll(CategoryBrandRelationEntity categoryBrandRelationEntity);

    //根据categoryId返回该分类关联的品牌信息-集合
    List<BrandEntity> getBrandsByCategoryId(Long categoryId);
}

